package club.lovety.service.user.portal;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableFeignClients
@SpringCloudApplication
public class UserPortalApplication {

    private static final Logger log = LoggerFactory.getLogger(UserPortalApplication.class);

    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

    public static void main(String[] args) {

        log.info("开始启动用户门户系统");
        SpringApplication.run(UserPortalApplication.class,args);
        log.info("启动门户信息成功");
    }
}
